﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 隐藏的板.
/// </summary>
public class HideBoard : MonoBehaviour {

    public int EnableState;

    private Collider _collider;

    private void Awake()
    {
        _collider = GetComponent<Collider>();
    }

    public void Activate()
    {
        _collider.isTrigger = false;
    }

    /// <summary>
    /// 隐藏.
    /// </summary>
    public void DisableColl()
    {
        _collider.isTrigger = true;
    }
}
